package com.bonc.rms.dao.impl.tms;

import java.sql.Date;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.bonc.rms.dao.tms.ISalaryRecordDao;
import com.bonc.rms.mapper.SalaryRecordMapper;

@Repository
public class SalaryRecordDaoImpl implements ISalaryRecordDao{
	@Autowired
	SalaryRecordMapper salaryRecordMapper;

	@Override
	public List<Map<String, Object>> getSalaryRecordByJobNumber(String jobNumber) {
		return salaryRecordMapper.getSalaryRecordByJobNumber(jobNumber);
	}

	@Override
	public List<Map<String, Object>> getSalaryRecordByJobNumberAndBetweenDate(String jobNumber, Date startDate, Date endDate) {
		return salaryRecordMapper.getSalaryRecordByJobNumberAndBetweenDate(jobNumber,startDate,endDate);
	}

	@Override
	public List<Map<String, Object>> getSalaryRecordByJobNumberAndBeforeDate(String jobNumber, Date beforeDate) {
		return salaryRecordMapper.getSalaryRecordByJobNumberAndBeforeDate(jobNumber,beforeDate);
	}
	
	@Override
	public List<Map<String, Object>> getSalaryRecordByJobNumberAndAfterDate(String jobNumber, Date afterDate) {
		return salaryRecordMapper.getSalaryRecordByJobNumberAndAfterDate(jobNumber,afterDate);
	}

}
